from django.db import models

# Create your models here.


class Grade(models.Model):
    g_name = models.CharField(max_length=20)


class Student(models.Model):
    s_name = models.CharField(max_length=20)
    s_age = models.IntegerField()
    sex_choices = (
        (False, '男'),
        (True, '女'),
    )
    s_sex = models.BooleanField(choices=sex_choices)
    grade = models.ForeignKey(Grade, on_delete=models.CASCADE)

    class A(models.Model):
        pass
